package com.fay.corejava.chapter4;

import java.util.Arrays;

/**
 * @Title:
 * @Description:
 * @Author Fay Wang
 * @Date 2022/2/20 22:21
 * @Version 1.0
 */
public enum Size {
    SMALL,
    MEDIUM,
    LARGE,
    EXTRA_LARGE;

    public static void main(String[] args) {
        Size small = Size.valueOf("SMALL");
        System.out.println(small);
        System.out.println(small.name());

        
        Size[] values = Size.values();
        System.out.println(Arrays.toString(values));
    }
}
